package com.rdc.example.bean.dto;

import java.time.LocalDateTime;

/**
 * @author duck
 */
public class LikeDTO {
    private Integer id;
    private Integer userId;
    private Integer articleId;
    private String userName;
    private LocalDateTime createdAt;

    public LikeDTO(Integer id, Integer userId, Integer articleId, String userName, LocalDateTime createdAt) {
        this.id = id;
        this.userId = userId;
        this.articleId = articleId;
        this.userName = userName;
        this.createdAt = createdAt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "LikesDTO{" +
                "id=" + id +
                ", userId=" + userId +
                ", articleId=" + articleId +
                ", userName='" + userName + '\'' +
                ", createdAt=" + createdAt +
                '}';
    }
}
